package cn.tedu.order.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {
/*`id` bigint(11) NOT NULL,
   `user_id` bigint(11) DEFAULT NULL COMMENT '用户id',
   `product_id` bigint(11) DEFAULT NULL COMMENT '产品id',
   `count` int(11) DEFAULT NULL COMMENT '数量',
   `money` decimal(11,0) DEFAULT NULL COMMENT '金额',
   `status` int(1) DEFAULT NULL COMMENT '订单状态：0：创建中；1：已完结*/

    private Long id;
    private Long userId;
    private Long productId;
    private Integer count;
    private BigDecimal money;
    private Integer status;
}
